const serverTokenKey = "online-judge-server-token"

export function setServerToken(token: any) {
    localStorage.setItem(serverTokenKey, token)
}

export function getServerToken() {
    return localStorage.getItem(serverTokenKey)
}

export function removeServerToken() {
    localStorage.removeItem(serverTokenKey)
}


const clientTokenKey = "online-judge-client-token"

export function setClientToken(token: any) {
    localStorage.setItem(clientTokenKey, token)
}

export function getClientToken() {
    return localStorage.getItem(clientTokenKey)
}

export function removeClientToken() {
    localStorage.removeItem(clientTokenKey)
}
